package org.i1510.common.bean;

import org.i1510.common.po.SysUser;
import org.i1510.common.utils.DateUtils;
import org.i1510.common.utils.IDGenerator;

/**
 * @author Administrator
 * session会话的User信息
 */
public class SessionUserBean {

	/**
	 * 系统用户信息
	 */
	private SysUser sysUser ;

	/**
	 * 登录的时间
	 */
	private String loginTime;
	/**
	 * 登录失败次数
	 */
	private Integer loginFailCount = 0;
	/**
	 * 登录验证码
	 */
	private String loginCaptchaValue;
	/**
	 * 跳转之后执行的URL
	 */
	private String afterUrl;
	/**
	 * 跳转之前执行的URL
	 */
	private String beforeUrl;
	/**
	 * 是否wuyo后台用户
	 */
	private Boolean isAdmin2wuyo = false;
	/**
	 * 是否wuyo前台用户
	 */
	private Boolean isFront2wuyo= false;
	
	/**
	 * @param anonymousUser 
	 * 匿名构造
	 */
	public SessionUserBean(String docId,String name,String nickName) {
		super();
		this.sysUser = new SysUser();
		this.sysUser.setDocId(docId);
		this.sysUser.setName(name);
		this.sysUser.setNickName(nickName);
		this.isFront2wuyo = true;
		this.loginTime = DateUtils.getNow();
	}
	
	public SessionUserBean() {
		super();
	}

	public SysUser getSysUser() {
		return sysUser;
	}

	public void setSysUser(SysUser sysUser) {
		this.sysUser = sysUser;
	}

	public String getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}
	public Integer getLoginFailCount() {
		return loginFailCount;
	}
	public void setLoginFailCount(Integer loginFailCount) {
		this.loginFailCount = loginFailCount;
	}
	public String getLoginCaptchaValue() {
		return loginCaptchaValue;
	}
	public void setLoginCaptchaValue(String loginCaptchaValue) {
		this.loginCaptchaValue = loginCaptchaValue;
	}
	public String getAfterUrl() {
		return afterUrl;
	}
	public void setAfterUrl(String afterUrl) {
		this.afterUrl = afterUrl;
	}
	public String getBeforeUrl() {
		return beforeUrl;
	}
	public void setBeforeUrl(String beforeUrl) {
		this.beforeUrl = beforeUrl;
	}
	public Boolean getIsAdmin2wuyo() {
		return isAdmin2wuyo;
	}
	public void setIsAdmin2wuyo(Boolean isAdmin2wuyo) {
		this.isAdmin2wuyo = isAdmin2wuyo;
	}
	public Boolean getIsFront2wuyo() {
		return isFront2wuyo;
	}
	public void setIsFront2wuyo(Boolean isFront2wuyo) {
		this.isFront2wuyo = isFront2wuyo;
	}
	
	
}
